package com.example.demo.mapper;

import com.example.demo.model.Commodity;
import com.example.demo.model.Commodity;
import com.example.demo.model.ReservationVo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;
@Component
public interface afterMapper {
    //查询全部商品
    @Select("select * from commodity")
    List<Commodity> seleAll();
    //修改商品状态
    int updStaOne(Integer id);
    int updStaTwo(Integer id);
    //查询所有订单
    List<ReservationVo> selRese();
}
